package com.guigu.www.erp.common.dao;

import com.guigu.www.erp.common.pojo.SGatherDetails;
import com.guigu.www.erp.common.pojo.SPay;
import com.guigu.www.erp.common.pojo.SPayDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SGatherDetailsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SGatherDetails record);

    int insertSelective(SGatherDetails record);

    SGatherDetails selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SGatherDetails record);

    int updateByPrimaryKey(SGatherDetails record);

    List<SGatherDetails> ByparentIDquery(Integer id);

    int ByprimaryKeyupdategatherTag(Integer id);

    List<SGatherDetails> BysGatherIdquerysGatherDetailsgatherTag2(Integer id);

    int ByGatherDetailsIdupdatesgatheredAmount(@Param("id") Integer id, @Param("amount") Integer amount);

    List<SPayDetails> ByspayIdquerysGatherDetailsgatherTag2(Integer id);

    List<SGatherDetails> ByparentIDquery2(Integer id);
}